﻿var generator = require('./HappyGenerator');

var project = {
    module: 'HappyBasicModuleMetadata',
    rootNamespace: 'Happy.BasicModule.Metadata',
    serverProjectDirectory: 'E:\\Coding\\Server\\Src\\BasicModule\\Happy.BasicModule.Metadata',
    clientProjectDirectory: 'E:\\Coding\\Server\\Src\\Happy.Web.Mvc.Host\\Module\\Happy.BasicModule.Metadata',
    connectionString: 'Data Source=DUANGWPC\\SQLEXPRESS;Initial Catalog=TestDatabase;Persist Security Info=True;User ID=sa;Password=woshishui2010',
    tables: {
        'Modules': {
            isAggregate: true
        },
        'Models': {
            isAggregate: true
        },
        'Fields': {
            isEntity: true,
            aggregate: 'Models'
        }
    }
};

generator.generate(project);